package com.groupbuying.admin.dto.do2dto;

import com.groupbuying.admin.domain.SysAgentInfoDO;
import com.groupbuying.admin.dto.AgentDTO;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

@org.mapstruct.Mapper
public interface AgentConvert {

    AgentConvert MAPPER = Mappers.getMapper(AgentConvert.class);

    @Mapping(target = "label", source = "agentName")
    @Mapping(target = "value", source = "id")
    public AgentDTO do2dto(SysAgentInfoDO sysAgentInfoDO);
}
